package org.kzwl.mapper.app;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.kzwl.entity.app.User;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {

    //修改是否为志愿者
    void updateIsVolunteers(@Param("userId") Integer cuUserId);

    //更新读书时间
    void syncDate(@Param("user") User user);

    int userCount();

    void syncLoginInfo(@Param("id") Integer cuUserId,@Param("time") LocalDateTime now);
}
